﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewData["Title"] - 论坛后台管理</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <!-- Add local styles, mostly for plugins css file -->
    @if (IsSectionDefined("Styles"))
    {
        @RenderSection("Styles", required: false)
    }

    <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
    <link rel="stylesheet" href="~/lib/metisMenu/dist/metisMenu.css" />
    <link rel="stylesheet" href="~/lib/iCheck/custom.css" />
    <link rel="stylesheet" href="~/lib/footable/css/footable.bootstrap.min.css" />
    <link rel="stylesheet" href="~/lib/sweetalert/dist/sweetalert.css" />
    <link rel="stylesheet" href="~/lib/silviomoreto-bootstrap/bootstrap-select.css" />
    <link rel="stylesheet" href="~/lib/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" />
    <link rel="stylesheet" href="~/lib/dataTables/datatables.min.css" />
    <link href="~/lib/datapicker/datepicker3.css" rel="stylesheet" />
    <link rel="stylesheet" href="~/style/lib/inspinia/inspinia.css" asp-append-version="true" />
    <link href="~/lib/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link href="~/lib/wangEditor/wangEditorExt.css" rel="stylesheet" />
    <environment names="Development">
        <link rel="stylesheet" href="~/style/manager/manager.css" asp-append-version="true" />
    </environment>
    <environment names="Staging,Production">
        <link rel="stylesheet" href="~/style/manager.min.css" asp-append-version="true" />
    </environment>
</head>
<body class="md-skin">
    <!-- Wrapper-->
    <div id="wrapper" class="@ViewContext.RouteData.Values["action"].ToString()">

        <!-- Navigation -->
        @Html.Partial("_ManageNavigation")

        <!-- Page wraper -->
        <div id="page-wrapper" class="gray-bg @ViewBag.SpecialClass">

            <!-- Top Navbar -->
            @Html.Partial("_ManageTopNavbar")
            @if (ViewData["isManagerIndexView"] != null && (bool)ViewData["isManagerIndexView"])
            {
                @RenderBody()
            }
            else
            {
                <div class="row">
                    <div class="@(ViewData["container-css"] ?? "col-lg-10")">
                        <div class="wrapper wrapper-content animated fadeInRight ecommerce ng-scope">
                            <div class="ibox-content m-b-sm border-bottom">
                                <div class="panel">
                                    <div class="panel-body">
                                        <div class="row">
                                            <div class="col-lg-6">
                                                <h2 class="page-main-title">@ViewData["Title"]</h2>
                                            </div>
                                            <div class="col-lg-6">
                                                @RenderSection("search", required: false)
                                            </div>
                                        </div>

                                        <hr />

                                        <!-- Main view  -->
                                        @RenderBody()

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            }

            @RenderSection("modals", required: false)
            <!-- Footer -->
            @Html.Partial("_ManageFooter")
        </div>
        <!-- End page wrapper-->
    </div>
    @if ((ViewData["showTableSn"] == null || (bool)ViewData["showTableSn"]) && ViewData["paging"] != null)
    {
        <div class="hide" id="standard-table-sn-start"></div>
    }

    <environment names="Development">
        <script src="~/lib/jquery/dist/jquery.js"></script>
        <script src="~/js/jquery.cookie.js"></script>
        <script src="~/js/pack-manage/bootstrap.min.js"></script>
        <script src="~/js/pack-manage/metisMenu.min.js"></script>
        <script src="~/js/pack-manage/pace.min.js"></script>
        <script src="~/js/pack-manage/footable.min.js"></script>
        <script src="~/js/pack-manage/sweetalert.min.js"></script>
        <script src="~/js/pack-manage/jquery.slimscroll.min.js"></script>
        <script src="~/js/pack-manage/icheck.min.js"></script>
        <script src="~/js/pack-manage/datatables.min.js"></script>
        <script src="~/js/pack-manage/vue.min.js"></script>
        <script src="~/js/pack-manage/bootstrap-select.min.js"></script>
        <script src="~/js/pack-manage/bootstrap-datepicker.js"></script>
        <script src="~/js/pack-manage/utils.js"></script>
        <script src="~/js/pack-manage/script.js"></script>
        <script src="~/js/pack-manage/header.js"></script>
        <script src="~/lib/upload/jquery.form.js"></script>
        <script src="~/lib/wangEditor/wangEditor.js"></script>
        <script src="~/lib/wangEditor/wangEditorExt.js"></script>
    </environment>
    <environment names="Staging,Production">
        <script src="~/lib/jquery/dist/jquery.js"></script>
        <script src="~/js/jquery.cookie.js"></script>
        <script src="~/js/pack-manage/bootstrap.min.js"></script>
        <script src="~/js/pack-manage/metisMenu.min.js"></script>
        <script src="~/js/pack-manage/pace.min.js"></script>
        <script src="~/js/pack-manage/footable.min.js"></script>
        <script src="~/js/pack-manage/sweetalert.min.js"></script>
        <script src="~/js/pack-manage/jquery.slimscroll.min.js"></script>
        <script src="~/js/pack-manage/icheck.min.js"></script>
        <script src="~/js/pack-manage/datatables.min.js"></script>
        <script src="~/js/pack-manage/vue.min.js"></script>
        <script src="~/js/pack-manage/bootstrap-select.min.js"></script>
        <script src="~/js/pack-manage/bootstrap-datepicker.js"></script>
        <script src="~/js/pack-manage/utils.js"></script>
        <script src="~/js/pack-manage/script.js"></script>
        <script src="~/js/pack-manage/header.js"></script>
        <script src="~/lib/upload/jquery.form.js"></script>
        <script src="~/lib/wangEditor/wangEditor.js"></script>
        <script src="~/lib/wangEditor/wangEditorExt.js"></script>
    </environment>

    @RenderSection("scripts", required: false)

    <script type="text/javascript">
        // 退出登录
        $(".logout_user").click(function () {
            $.ajax({
                url: '/logout',
                type: 'get',
                error: function (e) {
                    console.log(e);
                },
                success: function (json) {
                    console.log(json);
                    if (json.msg == 'ok') {
                        $.removeCookie("token");
                        localStorage.removeItem("token");
                        location.reload(true);
                    }
                }
            })
        });

    </script>
</body>
</html>
